fileInfoMatcher = $fileInfoMatcher; $this->skippedPathsResolver = $skippedPathsResolver; } public function shouldSkip(string $filePath) : bool { $skippedPaths = $this->skippedPathsResolver->resolve(); return $this->fileInfoMatcher->doesFileInfoMatchPatterns($filePath, $skippedPaths); } }